package com.wwj.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wangwj
 * @Date 2020/12/1 14:33
 */
@RestController
@RequestMapping("/order")
public class OrderHandler {

    @Value("${hello}")
    private String content;
/*    @Value("${server.port}")
    private String port;*/

    @GetMapping("/index")
    public String index() {
        return "从配置中心读取到的内容：" + this.content;
    }
}
